/**
 * ...
 * @author 
 */

package scuts.ds;

class HashMapFactory 
{

    public static function intBased <T,D>(hash:T->Int, ?equals:T->T->Bool):HashMap<T,D> {
        return new DefaultHashMap(new IntHash(), hash, equals);
    }
    
    public static function stringBased <T,D>(hash:T->String, ?equals:T->T->Bool):HashMap<T,D> 
    {
        return new DefaultHashMap(new Hash(), hash, equals);
    }
    
}